package My.Nhom2.ServiceSearch;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ListView;
import android.widget.TableLayout;
import android.widget.TableRow;
import android.widget.TextView;
import android.widget.LinearLayout.LayoutParams;
public class MenuListActivity extends Activity implements OnClickListener{
	ListView listmenu;
	ArrayList<ItemMenu> list;
	DataRetrieve retriever;
	DataService node = ServiceSearchActivity.node;
	MenuItemAdapter result;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // setup the layout
        setContentView(R.layout.menulist);
        retriever = new DataRetrieve();
		retriever.connect(this);
        
        listmenu = (ListView)findViewById(R.id.listMenu);
        list = new ArrayList<ItemMenu>();
        list.clear();
       
       	list = retriever.getMenuList(node.getMaDuLieu());
       	
        result = new MenuItemAdapter(this, list);
		listmenu.setAdapter(result);
       
        
    }
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		
	}


}
